package org.tio.sitexxx.web.server.controller.gl;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 编码 :tanLin
 */
public class NewsGetJob implements Job {
    private static Logger log = LoggerFactory.getLogger(NewsGetJob.class);
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        try{
            System.out.println("定时任务。。。。。");
            WxController.getInstance().put();//拉取微信公众号永久图文素材
        }catch (Exception e){
            log.error(e.toString(),e);
        }
    }
}
